import *as TYPES from '../action-types';

let initState = {
     role_menu:{}
}
export default function menu(state=initState,action) {
        state=JSON.parse(JSON.stringify(state))
        let {type,payload} = action 

        switch (type) {
            case TYPES.menuRole:
                state.role_menu = payload
                break;
        
            default:
                break;
        }
        return state
}